[Symfony] Admin generator and i18n
Posted
by David
on Stack Overflow
See other posts from Stack Overflow
or by David
Published on 2010-06-03T13:33:38Z
Indexed on
2010/06/03
13:34 UTC
Read the original article
Hit count: 224
symfony
|symfony-1.4
I have read lots of questions about i18n, but I haven't found any about performance.
I have a simple backend app listing the contents of an ads table. These ads have a category, that is translated in some languages (it's defined as i18n in the Doctrine schema).
So, when I add a "table_method" in my generator.yml to include de Category table, it reduces the number of queries, but there are yet some of them referencing i18n translation tables. So, if I add the category Translation table to the query, it reduces even more the queries BUT it increases the processing time considerably.
Why this time penalty? Just because of the translation table?
And why isn't the filter using this method to avoid so many translation queries as well? I mean, if I want to filter by category, it is making one query per category to include the translation table. Why??
© Stack Overflow or respective owner